package com.demo.stock.service;

import com.alibaba.fastjson.JSON;
import com.demo.stock.vo.StockVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * mysql扣库失败成功类
 *
 * @author admin
 */
@Service("stockSuccessService")
public class StockSuccessServiceImpl implements AbstractStockService {
    public static final Logger log = LoggerFactory.getLogger(StockFailedServiceImpl.class);

    @Override
    public boolean batchReduceStock(List<StockVo> stockVoList) {
        log.info("batchReduceStock:{}", JSON.toJSONString(stockVoList));
        return true;
    }
}
